package com.baoyouqun.domain.CreateCmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class OrderRecordCreateCmd implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "用户ID（关联用户表）")
    private String userId;

    @ApiModelProperty(value = "微信ID")
    private String openId;

    @ApiModelProperty(value = "订单类型")
    private String type;

    @ApiModelProperty(value = "订单总金额（元）")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "实付金额（元，可开票金额）")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "用户备注")
    private String remark;


    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}